/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	BProcessLog.java
 * 模块说明：	
 * 修改历史：
 * 2006-11-15 - lxm - 创建。
 */
package com.hd123.rumba.log.biz;

import java.util.Date;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.log.IProcessLog;
import com.hd123.rumba.runtime.IPersistent;
import com.hd123.rumba.runtime.biz.BPersistent;

/**
 * 处理过程日志 | 业务层 | 实体
 * 
 * @author lxm
 * 
 */
public class BProcessLog extends BPersistent {

  private int itemNo;
  private Date time;
  private Integer type;
  private String loggerName;
  private String message;

  public void readFrom(IPersistent source) throws BusinessException {
    super.readFrom(source);
    if (source instanceof IProcessLog) {
      this.itemNo = ((IProcessLog) source).getItemNo();
      this.time = ((IProcessLog) source).getTime();
      this.type = ((IProcessLog) source).getType();
      this.loggerName = ((IProcessLog) source).getLoggerName();
      this.message = ((IProcessLog) source).getMessage();
    }
  }

  public int getItemNo() {
    return itemNo;
  }

  public void setItemNo(int itemNo) {
    this.itemNo = itemNo;
  }

  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getLoggerName() {
    return loggerName;
  }

  public void setLoggerName(String loggerName) {
    this.loggerName = loggerName;
  }

}
